centos7 压缩解压命令

xlauch 2025年12月01日 20 0

1. 使用zip(推荐)

  • 压缩
zip -r archive-name.zip /path/to/directory
  • 解压
unzip archive-name.zip -d /target/directory

2. 使用tar

  • 压缩
tar czvf archive-name.tar.gz /path/to/directory
  • 解压
tar xzvf archive-name.tar.gz -C /target/directory
Last Updated: 2025/12/01 14:26:06
🎉️ 交换内存